<?php
/*xuzhou hook*/
if(strpos($head, '达人') !== FALSE){
    $head = str_replace('达人', '客服', $head);
}
?><!DOCTYPE html>
<html>
<head>
    <title><?php if(!empty($common[0]['title'])) echo $common[0]['title'];?></title>
    <meta charset="UTF-8" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta content="telephone=no" name="format-detection" />
    <link rel="shortcut icon" href="<?php echo $site_ico;?>" mce_href="<?php echo $site_ico ;?>" type="image/x-icon">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta name="keywords" content="<?php if(!empty($common[0]['keywords'])) echo $common[0]['keywords'];?>" />
    <meta name="description" content="<?php if(!empty($common[0]['description'])) echo $common[0]['description'];?>" />
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/main.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/dialog.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/base.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/index.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/default/mobile/css/line.css" />

    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/jquery/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/js/lazyload.min.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/mobilecommon.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/slider.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/template/default/mobile/js/dialog.js"></script>

    <script type="text/javascript">
        var baseurl = '<?php echo URLPRE?>',
            basemobileurl = '<?php echo site_url('mobile/index')?>',
            ADMINID = <?PHP echo @intval($this->session->userdata('admin_user_id'))?>,
            USERID = <?PHP echo @intval($this->session->userdata('user_id'))?>,
            loginUrl = '<?php echo site_url('/mobile/member/logout');?>' ;
        function unset_login(){
            $.post(loginUrl,{
                action:'unset'
            },function(data){
                var json = eval("("+data+")");
                if(json['status']=='1'){
                    if(json['action']=='unset'){
                        window.location.reload();
                    }
                }
            })
        }
    </script>
    <style>.content table td{ border:1px solid}</style>
    <?php echo $bg?>
</head>
<body>
<div class="global">
    <header>
        <div class="topside"><div class="toback">
                <?php if(empty($common[0]['noback'])){?>
                    <a href="javascript:history.back();"><i></i><b>返回</b></a>
                <?php }?></div>
            <div class="pagetitle"> <b><?php echo @$head?></b></div>
            <div class="otherFun  header-menu-btn"> <a href="javascript:;" class="q"></a> </div>
        </div>
    </header>


    <?php
    //$this->load->module('mobile/index/header', $common);
$lazy = URLPRE.'static/template/xuzhou/mobile/images/huancun.jpg';
?>
<img src="<?php echo URLPIC.$info['avatar']?>" style="height:1px;width:1px;position:absolute;opacity:0" />
<style type="text/css">
.topside{display:none}
</style>
<header>
    <div class="micro-header">
        <div class="micro-logo" style="background-image:url(<?php echo $sitelogo?>)"> </div>
        <div class="m-store-header ">
            <div class="msheader">
                <div class="header_icon"> </div>
                <div class="header"> <a href="tel:<?php echo $info['mobile']?>"> <img src="<?php echo URLPIC.$info['avatar']?>" alt="<?php echo $info['realname']?>"></a> </div>
            </div>
            <p class="people-name"><a href="tel:<?php echo $info['mobile']?>"> <?php echo $info['realname']?><span> <?php echo $info['mobile']?></span> </a></p>
            <p class="store-name"> <?php echo $_COOKIE['expert_company'] ? $_COOKIE['expert_company'] : $company?> </p>
        </div>
    </div>
    <div class="micro-search">
        <div class="ms-box">
            <form action="<?php echo  site_url('/mobile/line/index/').'/'?>" method="get" id="searchForm" accept-charset="utf-8">
                <input name="keyword" type="text" class="msearch-key" id="txtSearch" placeholder="想去哪儿,从这里开始...">
                <input type="hidden" name="cat_id" value="0" />
                <input type="submit" class="searchGo" value="">
            </form>
        </div>
    </div>
</header>
<?php include 'index_body.php';?>
<?php if($card_info = unserialize($_COOKIE['card_info'])){?>
    <div class="about-this-store">
        <p> <?php echo $_COOKIE['expert_company'] ? $_COOKIE['expert_company'] : $company?>(<?php echo $card_info['realname']?>)</p>
        <p> <?php echo $card_info['addr'] ? $card_info['addr']  : $company_address?></p>
        <p> <?php echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone?></p>
   </div>
<?php }?>
<?php echo $sharehtml?>
<?php
    // $this->load->module('mobile/index/footer', $common);
?>

    <!-- 公共页脚  -->
    <style type="text/css">
        .store-tools ul li{
            width:25%;
        }
        @media screen and (min-width: 960px){
            .footer-control {
                max-width: 640px;
            }
        }
    </style>
    <footer class="footer-control" <?php echo $_GET['id']>0? 'style="margin: 0 auto 50px auto;"' : 'style="margin: 0 auto;"';?>>
        <div class="store-copy">
            <?php
            @$user_id = $this->session->userdata('user_id');
            @$admin_user_id = $this->session->userdata('admin_user_id') ;
            if(!$user_id && !$admin_user_id){
                ?>
                <a href="<?php echo site_url('/mobile/member/login')?>">登陆</a>
                <a href="<?php echo site_url('/mobile/member/register')?>">注册</a>
            <?php }?>
            <p> 旅游许可证编号：<?php echo $licence?> <?php echo $site_record_num;?><br />
                <?php echo $company;?> 品牌授权<?php if($GLOBALS['sid']!=32943) { ?><br>技术支持：浩楠网络科技<?php } ?>
            </p>
        </div>
        <div class="store-tools">
            <ul>
                <li class="this"><a href="<?php echo site_url($_COOKIE['from_card']&&INWECHAT  ? 'mobile/member/card/?eid='.$_COOKIE['from_card'] : 'mobile/index')?>"><i></i>
                        <p> 首页</p>
                    </a></li>
                <li><a href="tel:<?php echo $_GET['eid'] ? $_COOKIE['from_tel'] : $site_service_phone?>"><i></i>
                        <p> 电话</p>
                    </a></li>
                <li><a href="<?php echo site_url('mobile/member/center');?>"><i></i>
                        <p> 我的</p>
                    </a></li>
                <li style="display:none;"><a href="#"><i></i>
                        <p> 留言</p>
                    </a></li>
                <li><a href="javascript:scroll(0,0);"><i></i>
                        <p> 顶部</p>
                    </a></li>
            </ul>
        </div>
    </footer>
</div>
</body>
</html>

